from django.urls import path
from .views import booking_api, booking_id_api, appointment_api, appointment_id_api, appointment_client_add_api, \
    appointment_client_delete_api, previous_next_appointment_api, attendance_api, calendar_api, provider_calendar_list, \
    calendar_list, provider_booking_list, appointment_tab_list, appointment_tab_id_api, get_appointments_api

app_name = 'booking'


urlpatterns = [
    path('booking', booking_api, name='booking_api'),
    path('booking/<str:booking_id>', booking_id_api, name='booking_id_api'),
    path('booking/<str:booking_id>/appointment', appointment_api, name='booking_id_api'),
    path('appointment', appointment_api, name='appointment_api'),
    path('appointment/<str:appointment_id>', appointment_id_api, name='appointment_id_api'),
    path('appointment/<str:appointment_pk>/client-add', appointment_client_add_api, name='appointment_id_api'),
    path('appointment/<str:appointment_pk>/client-delete', appointment_client_delete_api, name='appointment_id_api'),
    path('previous-and-next', previous_next_appointment_api, name='previous and next appointment api'),
    path('attendance', attendance_api, name='attendance api'),
    path('calendar-list', calendar_api, name='calendar api'),
    path('provider-calendar-list', provider_calendar_list, name='provider calendar api'),
    path('calendar-list/<str:appointment_id>', calendar_list, name='calendar-list retrieve'),
    path('provider/booking-list', provider_booking_list, name='provider-booking-list'),
    path('appointment-tab', appointment_tab_list, name='appointment-tab-list'),
    path('appointment-tab/<str:appointment_id>', appointment_tab_id_api, name='appointment-retrieve-list'),
    path('get-appointments', get_appointments_api, name='appointment-retrieve-list'),
]
